package com.gadglet.data;


import java.util.Date;

import javax.jdo.annotations.Extension;
import javax.jdo.annotations.IdGeneratorStrategy;
import javax.jdo.annotations.PersistenceCapable;
import javax.jdo.annotations.Persistent;
import javax.jdo.annotations.PrimaryKey;

/**
 * Persistence class for Domain User Friends
 *
 */
@PersistenceCapable
public class DomainUserFriends {

	@PrimaryKey
	@Persistent(valueStrategy = IdGeneratorStrategy.IDENTITY)
	@Extension(vendorName = "datanucleus", key = "gae.encoded-pk", value = "true")
	private String id;
	
	
	@Persistent
	private String userUniqueId;
			
	@Persistent
	private String friendUniqueId;
		
	@Persistent
	private Date creation;

	public DomainUserFriends(String userUniqueId, String freindUniqueId) {
		this.userUniqueId = userUniqueId;
		this.friendUniqueId = freindUniqueId;
		this.creation = new Date();
	}
	
	public String getUserUniqueId() {
		return userUniqueId;
	}

	public void setUserUniqueId(String userUniqueId) {
		this.userUniqueId = userUniqueId;
	}

	public String getFriendUniqueId() {
		return friendUniqueId;
	}

	public void setFriendUniqueId(String friendUniqueId) {
		this.friendUniqueId = friendUniqueId;
	}

	public String getId() {
		return id;
	}

	public Date getCreation() {
		return creation;
	}
}
